<?php
/** @var \Illuminate\Routing\Router $router */
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

Route::get('pushCode', ['uses' => 'App\Http\Controllers\ApiHospital\LoginController@pushCode']);
Route::post('login', ['uses' => 'App\Http\Controllers\ApiHospital\LoginController@login']);

$router->group(
    [
    'middleware' => 'auth:api-hospital'
    ],
    function () use ($router) {
        $router->get('/queue-list', ['uses' => 'App\Http\Controllers\ApiHospital\QueueController@list']);
        $router->get('/room', ['uses' => 'App\Http\Controllers\ApiHospital\QueueController@room']);
        $router->post('/room-setting', ['uses' => 'App\Http\Controllers\ApiHospital\QueueController@roomSetting']);
    });
